home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / share / pyshared / rdflib / QueryResult.py < prev    next >
Encoding:
Python Source  |  2009-03-04  |  374 b   |  13 lines

  1. class QueryResult(object):
  2.     """
  3.     A common class for representing query result in a variety of formats, namely:
  4.  
  5.     xml   : as an XML string using the XML result format of the query language
  6.     python: as Python objects
  7.     json  : as JSON
  8.     """
  9.     def __init__(self,pythonResult):
  10.         self.rt = pythonResult
  11.  
  12.     def serialize(self,format='xml'):
  13.         pass